/*
 * @Author: sunli
 * @Date: 2021-12-27 22:01:57
 * @LastEditTime: 2023-11-07 13:19:23
 * @LastEditors: sunli
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /etrip-ui/src/router.js
 */
import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
  {
    name: 'Home',
    path: '/',
    component: () => import('./Home.vue')
  },
  {
    name: 'Picker',
    path: '/picker',
    component: () => import('./views/picker/demo.vue')
  },
  {
    name: 'DatePicker',
    path: '/datePicker',
    component: () => import('./views/datePicker/demo.vue')
  },
  {
    name: 'Toast',
    path: '/toast',
    component: () => import('./views/toast/demo.vue')
  },
  {
    name: 'Dialog',
    path: '/dialog',
    component: () => import('./views/dialog/demo.vue')
  },
  {
    name: 'Popup',
    path: '/popup',
    component: () => import('./views/popup/demo.vue')
  },
  {
    name: 'Calendar',
    path: '/calendar',
    component: () => import('./views/calendar/demo.vue')
  },
  {
    name: 'NavBar',
    path: '/navBar',
    component: () => import('./views/navBar/demo.vue')
  },
  {
    name: 'RadioList',
    path: '/radioList',
    component: () => import('./views/radioList/demo.vue')
  },
  {
    name: 'PullRefresh',
    path: '/pullRefresh',
    component: () => import('./views/pullRefresh/demo.vue')
  },
  {
    name: 'Loading',
    path: '/loading',
    component: () => import('./views/loading/demo.vue')
  },
  {
    name: 'Button',
    path: '/button',
    component: () => import('./views/button/demo.vue')
  },
  {
    name: 'Cell',
    path: '/cell',
    component: () => import('./views/cell/demo.vue')
  },
  {
    name: 'Field',
    path: '/field',
    component: () => import('./views/field/demo.vue')
  },
  {
    name: 'Switch',
    path: '/switch',
    component: () => import('./views/switch/demo.vue')
  },
  {
    name: 'Overlay',
    path: '/overlay',
    component: () => import('./views/overlay/demo.vue')
  },
  {
    name: 'TreeSelect',
    path: '/treeSelect',
    component: () => import('./views/treeSelect/demo.vue')
  },
  {
    name: 'DateNav',
    path: '/dateNav',
    component: () => import('./views/dateNav/demo.vue')
  },
  {
    name: 'Uploader',
    path: '/uploader',
    component: () => import('./views/uploader/demo.vue')
  },
  {
    name: 'ImagePreview',
    path: '/imagePreview',
    component: () => import('./views/imagePreview/demo.vue')
  },
  {
    name: 'List',
    path: '/list',
    component: () => import('./views/list/demo.vue')
  },
  {
    name: 'Slider',
    path: '/slider',
    component: () => import('./views/slider/demo.vue')
  },
  {
    name: 'Swipe',
    path: '/swipe',
    component: () => import('./views/swipe/demo.vue')
  }
]
const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router